Chapter 3 - Install Terraform and Tools
Windows based install with VScode
Install Terraform
https://developer.hashicorp.com/terraform/install I just download whichever version I use and drop it into my path folder on my OS. If I'm working with different versions, I rename the exe before dropping into the path folder.
Examples:
- terraform1228 - 0.12.28
- terraform135 - 0.13.5
- terraformuno - 1.0.0
- terraformlatest or just terraform - latest released version of Tterraform - useful when keeping your code up to date with the latest version of tf.
Install VS Code
https://code.visualstudio.com/docs/setup/setup-overview
Install Terraform Extension
https://marketplace.visualstudio.com/items?itemName=hashicorp.terraform https://learn.microsoft.com/en-us/azure/developer/terraform/configure-vs-code-extension-for-terraform?tabs=azure-cli
Install Git
Clone Repo
This is the example repo that is used. Primarily Azure with a little bit of AWS mixed in. https://github.com/stacksimplify/hashicorp-certified-terraform-associate-on-azure.git
Create Terraform Workspace
https://code.visualstudio.com/docs/editor/workspaces You can create a workspace and disable every extension except for what you use for Terraform. I load all of my terraform into this workspace, using a different theme to easily distinguish the type of language and code I am using.